package com.ruoyi.project.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.SysWechatPayMapper;
import com.ruoyi.project.system.domain.SysWechatPay;
import com.ruoyi.project.system.service.ISysWechatPayService;

/**
 * 微信支付Service业务层处理
 *
 * @author hongwj
 * @date 2024-02-06
 */
@Service
public class SysWechatPayServiceImpl implements ISysWechatPayService {
    @Autowired
    private SysWechatPayMapper sysWechatPayMapper;

    /**
     * 查询微信支付
     *
     * @param id 微信支付主键
     * @return 微信支付
     */
    @Override
    public SysWechatPay selectSysWechatPayById(Long id) {
        return sysWechatPayMapper.selectSysWechatPayById(id);
    }

    /**
     * 查询微信支付列表
     *
     * @param sysWechatPay 微信支付
     * @return 微信支付
     */
    @Override
    public List<SysWechatPay> selectSysWechatPayList(SysWechatPay sysWechatPay) {
        return sysWechatPayMapper.selectSysWechatPayList(sysWechatPay);
    }

    /**
     * 新增微信支付
     *
     * @param sysWechatPay 微信支付
     * @return 结果
     */
    @Override
    public int insertSysWechatPay(SysWechatPay sysWechatPay) {
            return sysWechatPayMapper.insertSysWechatPay(sysWechatPay);
    }

    /**
     * 修改微信支付
     *
     * @param sysWechatPay 微信支付
     * @return 结果
     */
    @Override
    public int updateSysWechatPay(SysWechatPay sysWechatPay) {
        return sysWechatPayMapper.updateSysWechatPay(sysWechatPay);
    }

    /**
     * 批量删除微信支付
     *
     * @param ids 需要删除的微信支付主键
     * @return 结果
     */
    @Override
    public int deleteSysWechatPayByIds(Long[] ids) {
        return sysWechatPayMapper.deleteSysWechatPayByIds(ids);
    }

    /**
     * 删除微信支付信息
     *
     * @param id 微信支付主键
     * @return 结果
     */
    @Override
    public int deleteSysWechatPayById(Long id) {
        return sysWechatPayMapper.deleteSysWechatPayById(id);
    }
}
